#include "StdAfx.h"
#include "Record.h"
#include <iostream>
#include <fstream>
//#include <stdlib>

using namespace std;



Record::Record(){
    clientID = 0;
    firstName = new char[30];
    lastName = new char[30];
    streetNumber = 0;
    streetName = new char[30];
    balance = 0;
}

Record::Record(long int ID, char myFirstName[30], char myLastName[30], int myStreetNumber, char myStreetName[30], float myBalance){
    clientID = ID;
    firstName = myFirstName;
    lastName = myLastName;
    streetNumber = myStreetNumber;
    streetName = myStreetName;
    balance = myBalance;
}

long int Record::getID(){
    return clientID;
}

void Record::setID(int ID){
    clientID = ID;
}

char* Record::getFirstName(){
	firstName = firstNameArray;
    return firstName;
}

void Record::setFirstName(char myFirstName[30]){
    firstName = myFirstName;
	strcpy(firstNameArray, firstName);
	firstNameArray;
}

char* Record::getLastName(){
	lastName = lastNameArray;
    return lastName;
}

void Record::setLastName(char myLastName[30]){
    lastName = myLastName;
	strcpy(lastNameArray, lastName);
}

int Record::getStreetNumber(){
    return streetNumber;

}

void Record::setStreetNumber(int number){
    streetNumber = number;
}

char* Record::getStreetName(){
	streetName = streetNameArray;
    return streetName;
}

void Record::setStreetName(char myStreetName[30]){
    streetName = myStreetName;
	strcpy(streetNameArray, streetName);
}

float Record::getBalance(){
    return balance;
}

void Record::setBalance(float myBalance){
    balance = myBalance;
}

char* Record::getCity(){
	city = cityArray;
	return city;
}

void Record::setCity(char myCity[30]){
	city = myCity;
	strcpy(cityArray, city);
}
